package no.monsen.integrasjon;

import no.monsen.monsenservice.MonsenFact;
import no.monsen.monsenservice.MonsenService;
import no.monsen.monsenservice.impl.MonsenServiceImplService;


/**
 *
 * @author geir.k.wollum
 */
public class MonsenRetriever {

    public MonsenFact getMonsenFact(MonsenFact request) {
        MonsenServiceImplService service = new MonsenServiceImplService();
        MonsenService monsen = service.getMonsenServiceImplPort();
        return monsen.getMonsenFact(request);
    }

    public String isUpdateAvailable(String versjon) {
        MonsenServiceImplService service = new MonsenServiceImplService();
         MonsenService monsen = service.getMonsenServiceImplPort();
        return monsen.isUpdateAvailable(versjon);
    }
}
